from page.base_page import BasePage
from appium.webdriver.common.mobileby import By

class SpflPage(BasePage):
    #定位器
    #主食
    zs_locator = (By.XPATH,'//android.widget.ListView[@resource-id=\"com.gfeng.daydaycook:id/leftListView\"]/android.widget.LinearLayout[5]')

    #操作方法
    #点击主食
    def click_zs(self):
        self.driver.find_element(*self.zs_locator).click()